{config_load file=test.conf section="setup"}
{include file="header.html" title_page=List name=Money}

<div id="msg">{$msg_content}</div>
<table class="list" cellspacing="0" cellpadding="0" border="0">
  <caption><strong>消费条目列表</strong></caption>
  <tr class="tb_title">
    <td>ID</td>
    <td>标题</td>
    <td>金额（元）</td>
    <td>类型</td>
    <td>支付方式</td>
    <td>分类</td>
    <td>时间</td>
    <td>操作</td>
  </tr>
  {section name=item loop=$list_items}
  <tr>
    <td>{$list_items[item].id}</td>
    <td class="tb_caption"><a href="money_detail.php?id={$list_items[item].id}" onclick="return false;">{$list_items[item].caption}</a></td>
    <td>{$list_items[item].money}</td>
    <td>{if $list_items[item].type}收入{else}支出{/if}</td>
    <td>{if $list_items[item].pay_type}现金{else}信用卡{/if}</td>
    <td>{$list_items[item].categorycaption}</td>
    <td>{$list_items[item].add_time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
    <td>
      {if $list_items[item].privacy}<a href="?ac=en&id={$list_items[item].id}">公开</a>{else}<a href="?ac=dis&id={$list_items[item].id}">隐私</a>{/if} | 
      <a href="money_add.php?ac=edit&id={$list_items[item].id}">修改</a> | 
      <a href="?ac=del&id={$list_items[item].id}" onclick="javascript: if(confirm('确实删除？')) return true; else return false;">删除</a>
    </td>
  </tr>
  {sectionelse}
  <tr><td colspan="8"><strong>暂时没有消费条目！</strong></td></tr>
  {/section}
</table>

{include file="footer.html"}